package dy.com.part2ClassLoader.chapter9;

public class TestMyClassLoader {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        MyClassLoader myClassLoader = new MyClassLoader("/home/dy/Desktop/","myClassLoader");
        MyClassLoader myClassLoader2 = new MyClassLoader("/home/dy/Desktop/","myClassLoader");
        Class c1 = myClassLoader.findClass("Wali");
        Class c2 = myClassLoader2.findClass("Wali");

        System.out.println(c1.getClassLoader()+" "+c1.hashCode());
        System.out.println(c2.getClassLoader()+" "+c2.hashCode()+"  ");
    }

}
